gtk-demo: Fix toggle- vs checkbutton confusion
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Sep 2020 03:07:21 +0000 (23:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 17 Sep 2020 03:07:21 +0000 (23:07 -0400)
demos/gtk-demo/markup.c

index 900436f6e70ddacaaf85d33a49d37ae6ede97cf6..8d19529f30a60bc1205259de9a97c22d6bd74647 100644 (file)
@@ -14,9 +14,9 @@ static GtkWidget *view;
 static GtkWidget *view2;
 
 static void
-source_toggled (GtkToggleButton *button)
+source_toggled (GtkCheckButton *button)
 {
-  if (gtk_toggle_button_get_active (button))
+  if (gtk_check_button_get_active (button))
     gtk_stack_set_visible_child_name (GTK_STACK (stack), "source");
   else
     {